package com.project.myPackage.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Orderdetails implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Integer order_detail_id;
    private Integer order_id;
    private Integer product_id;
    private Integer quantity;
    private Float price;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime created_at;
}
